package com.chenglu.android.goodsinfo.mvp.model;





import com.chenglu.android.bean.SmsCodeBean;
import com.chenglu.android.cart.bean.CartBean;
import com.chenglu.android.common.net.RetrofitClientCL;
import com.chenglu.android.goodsinfo.bean.GoodsCommentBean;
import com.chenglu.android.goodsinfo.bean.GoodsInfoBean;
import com.chenglu.android.goodsinfo.bean.ShopCouponPage;
import com.chenglu.android.goodsinfo.bean.ShopsinfoBean;
import com.chenglu.android.goodsinfo.mvp.contract.GoodsInfoContract;
import com.chenglu.android.index.bean.IndexRecomBean;
import com.chenglu.android.mine.bean.AmountTypeBean;
import com.chenglu.android.mine.bean.CommonDataBean;
import com.chenglu.android.mine.bean.MoneyBean;
import com.chenglu.android.payment.bean.CouponListBean;

import java.util.Map;

import io.reactivex.rxjava3.core.Observable;
import okhttp3.RequestBody;

/**
 * @author: lyj
 * @Created by Copyright 2023/7/27 Guangzhou Hongma Technology Co., Ltd. All rights reserved.
 *
 */
public class GoodsInfotModel implements GoodsInfoContract.GoodsInfoModel {


    @Override
    public Observable<GoodsInfoBean> getGoodsInfo(Map<String, String> map) {
        return RetrofitClientCL.getInstance().getApi().getGoodsInfo(map);
    }

    @Override
    public Observable<GoodsCommentBean> getGoodsComment(Map<String, String> map) {
        return RetrofitClientCL.getInstance().getApi().getGoodsComment(map);
    }

    @Override
    public Observable<ShopsinfoBean> getShopinfo(String tenantId) {
        return RetrofitClientCL.getInstance().getApi().getShopinfo(tenantId);
    }
    @Override
    public Observable<SmsCodeBean> getGoodsCollectRemove(String token, String goodsId) {
        return RetrofitClientCL.getInstance().getApi().getGoodsCollectRemove(token, goodsId);
    }

    @Override
    public Observable<SmsCodeBean> getShopsCollectRemove(String token, String tenantId) {
        return RetrofitClientCL.getInstance().getApi().getShopsCollectRemove(token, tenantId);
    }

    @Override
    public Observable<SmsCodeBean> getGoodsCollectSave(String token, RequestBody requestBody) {
        return RetrofitClientCL.getInstance().getApi().getGoodsCollectSave(token, requestBody);
    }

    @Override
    public Observable<IndexRecomBean> getShopsRecommendList(String type) {
        return RetrofitClientCL.getInstance().getApi().getShopsRecommendList(type);
    }

    @Override
    public Observable<CommonDataBean> getAddCartShop(String token, RequestBody requestBody) {
        return RetrofitClientCL.getInstance().getApi().getAddCartShop(token, requestBody);
    }

    @Override
    public Observable<CartBean> getShopsCart(String token, String shopsTypeId) {
        return RetrofitClientCL.getInstance().getApi().getShopsCart(token,shopsTypeId);
    }

    @Override
    public Observable<ShopCouponPage> getShopCouponPage(String token, Map<String, String> map) {
        return RetrofitClientCL.getInstance().getApi().getShopCouponPage(token, map);
    }

    @Override
    public Observable<CommonDataBean> getShopCouponreceive(String token, String id) {
        return RetrofitClientCL.getInstance().getApi().getShopCouponreceive(token, id);
    }
}
